﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BagOpen1 : MonoBehaviour
{
    public GameObject OpenBag_1;
    public bool isOpen;
    // Update is called once per frame
   void Update()
        {
        OpenMyBag();
    }

  public  void OpenMyBag()
        {
       
        if(Input.GetKeyDown(KeyCode.O))
            {
            isOpen=!isOpen;
            OpenBag_1.SetActive(isOpen);
        }
    }
}
